<%@ page import="cn.gudian.cms.Job.Place" %>
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  <meta name="layout" content="main"/>
  <title><g:message code="place.create" default="Create Place"/></title>
  <ckeditor:resources/>
</head>
<body>
<div class="nav">
  <span class="menuButton"><a class="home" href="${createLinkTo(dir: '')}"><g:message code="home" default="Home"/></a></span>
  <span class="menuButton"><g:link class="list" action="list"><g:message code="place.list" default="Place List"/></g:link></span>
</div>
<div class="body">
  <h1><g:message code="place.create" default="Create Place"/></h1>
  <g:if test="${flash.message}">
    <div class="message"><g:message code="${flash.message}" args="${flash.args}" default="${flash.defaultMessage}"/></div>
  </g:if>
  <g:hasErrors bean="${placeInstance}">
    <div class="errors">
      <g:renderErrors bean="${placeInstance}" as="list"/>
    </div>
  </g:hasErrors>
  <g:form action="save" method="post">
    <div class="dialog">
      <table>
        <tbody>

        <tr class="prop">
          <td valign="top" class="name">
            <label for="title"><g:message code="place.title" default="Title"/>:</label>
          </td>
          <td valign="top" class="value ${hasErrors(bean: placeInstance, field: 'title', 'errors')}">
            <g:textField name="title" value="${fieldValue(bean: placeInstance, field: 'title')}"/>

          </td>
        </tr>

        <tr class="prop">
          <td valign="top" class="name">
            <label for="address"><g:message code="place.address" default="Address"/>:</label>
          </td>
          <td valign="top" class="value ${hasErrors(bean: placeInstance, field: 'address', 'errors')}">
            <g:textField name="address" value="${fieldValue(bean: placeInstance, field: 'address')}"/>

          </td>
        </tr>

        <tr class="prop">
          <td valign="top" class="name">
            <label for="pNumber"><g:message code="place.pNumber" default="PN umber"/>:</label>
          </td>
          <td valign="top" class="value ${hasErrors(bean: placeInstance, field: 'pNumber', 'errors')}">
            <g:textField name="pNumber" value="${fieldValue(bean: placeInstance, field: 'pNumber')}"/>

          </td>
        </tr>

        <tr class="prop">
          <td valign="top" class="name">
            <label for="workTime"><g:message code="place.workTime" default="Work Time"/>:</label>
          </td>
          <td valign="top" class="value ${hasErrors(bean: placeInstance, field: 'workTime', 'errors')}">
            <g:textField name="workTime" value="${fieldValue(bean: placeInstance, field: 'workTime')}"/>

          </td>
        </tr>

        <tr class="prop">
          <td valign="top" class="name">
            <label for="languageReq"><g:message code="place.languageReq" default="Language Req"/>:</label>
          </td>
          <td valign="top" class="value ${hasErrors(bean: placeInstance, field: 'languageReq', 'errors')}">
            <g:textField name="languageReq" value="${fieldValue(bean: placeInstance, field: 'languageReq')}"/>

          </td>
        </tr>

        <tr class="prop">
          <td valign="top" class="name">
            <label for="schoolRecord"><g:message code="place.schoolRecord" default="School Record"/>:</label>
          </td>
          <td valign="top" class="value ${hasErrors(bean: placeInstance, field: 'schoolRecord', 'errors')}">
            <g:textField name="schoolRecord" value="${fieldValue(bean: placeInstance, field: 'schoolRecord')}"/>

          </td>
        </tr>





        <tr class="prop">
          <td valign="top" class="name">
            <label for="description"><g:message code="place.description" default="Description"/>:</label>
          </td>
          <td valign="top" class="value ${hasErrors(bean: placeInstance, field: 'description', 'errors')}">
            <ckeditor:editor name="description">
              ${placeInstance.description}
            </ckeditor:editor>
          </td>
        </tr>
        <tr class="prop">
          <td valign="top" class="name">
            <label for="linkMode"><g:message code="place.linkMode" default="Link Mode"/>:</label>
          </td>
          <td valign="top" class="value ${hasErrors(bean: placeInstance, field: 'linkMode', 'errors')}">
            <g:textArea name="linkMode" value="${fieldValue(bean: placeInstance, field: 'linkMode')}" style="width:100%;height:40px;"/>

          </td>
        </tr>
        <tr class="prop">
          <td valign="top" class="name">
            <label for="pubTime"><g:message code="place.pubTime" default="Pub Time"/>:</label>
          </td>
          <td valign="top" class="value ${hasErrors(bean: placeInstance, field: 'pubTime', 'errors')}">
            <gd:datePicker name="pubTime" value="${placeInstance?.pubTime}"/>

          </td>
        </tr>
        </tbody>
      </table>
    </div>
    <div class="buttons">
      <span class="button"><g:submitButton name="create" class="save" value="${message(code: 'create', 'default': 'Create')}"/></span>
    </div>
  </g:form>
</div>
</body>
</html>
